home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / raytrace / real3d / shuffle.lha / Shuffle.txt < prev    next >
Text File  |  1993-09-05  |  2KB  |  60 lines

  1. Randomize Selected objects.
  2.  
  3. As it comes this routine needs to be assigned to an ICON in a tool window.
  4.  
  5. To do this add copy the file shuffle.rpl to 'r3d2:rpl/' and add the following
  6. line to the file s:rpl-startup
  7.  
  8. "r3d2:rpl/shuffle.rpl" LOAD
  9.  
  10. Probably the best place is just after the line "r3d2:rpl/sys/editor.rpl" LOAD
  11.  
  12. Now run Real open a tool window and select Tool/Create Icon from the menus.
  13. Type Randomize (case sensitive) into the box and make sure the button next to
  14. RPL word is selected. Now select some objects and click on the icon to run it.
  15.  
  16. If you want to execute it as a macro then simply create a text file with the
  17. following line :-
  18.  
  19. Randomize
  20.  
  21. Save the file to r3d2:macros and then select Project/Macros/Execute Named and
  22. select the file. If you want to run it more than once as a macro then select
  23. Projects/Macros/Named to Current and then press x every time you want to run
  24. it.
  25.  
  26. What does it do?
  27.  
  28. It takes all the currently selected objects and moves them a random distance
  29. in all directions. The overall randomness is defined by the user each time the
  30. program executes. This feature was add not only to give the user some control
  31. over the effect but also because the routine uses absolute coordinates and the
  32. scale of your model will affect the results a great deal.
  33.  
  34. It doesn't enter sub-levels and move the contents randomly. It will only move
  35. the entire level.
  36.  
  37. Known problems.
  38.  
  39. It can't be Undone. Undo won't work with a macro. To get round this perform a
  40. dummy move, creation, etc before
  41.  
  42. Why?
  43.  
  44. I'm still learning RPL and a while back I saw a message from someone asking
  45. for a way of randomizing a freeform object very slightly so it would be more
  46. life-like and less perfect. This is the result, just make a group for each
  47. point on the mesh and select them all before running this script.
  48.  
  49.  
  50. Andy Jones
  51.  
  52. 2:253/516.1 Fidonet
  53.  
  54. Pixel Perfect Computer Graphics
  55. 27a Tremaine Road
  56. Anerley
  57. London SE20 7UA
  58. England
  59.  
  60.